package 
{
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Transformer
	{
		public static function ghostly(p:Player):void
		{
			p.state = Player.GHOSTLY;
			
			p.loadGraphic(Assets.ImgPlayerGhost, true, false, 25, 25);
			p.clearAnimations();
			
			p.addAnimation("UP", [0, 1, 2, 1], 6);
			p.addAnimation("DOWN", [3, 4, 5, 4], 6);
			p.addAnimation("LEFT", [6, 7, 8, 7], 6);
			p.addAnimation("RIGHT", [9, 10, 11, 10], 6);
			p.addAnimation("DYING", [12, 13, 14, 15, 16, 17, 18, 19], 6, false);
			p.play("DOWN");
		}
	}

}